import requests


class BeiKe:
    Session = None

    @classmethod
    def get_session(cls):
        if cls.Session is None:
            cls.Session = requests.Session()
        return cls.Session


session = BeiKe.get_session()
session.close()
session1 = BeiKe.get_session()

print(session)
print(session1)
